package com.weipai.education.mapper;

import com.weipai.education.model.ProductPrice;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProductPriceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductPrice record);

    int insertSelective(ProductPrice record);

    ProductPrice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductPrice record);

    int updateByPrimaryKey(ProductPrice record);

    Map<String,Object> getProductPriceByUserId(@Param("productId") String productId, @Param("userId") String userId);

    List<Map<String,Object>> getProductPrice(@Param("productId") String productId);

    List<Map<String,Object>> getProductPriceByProductCateIdAndUserCateId(@Param("productCateId") Integer productCateId, 
                                                                         @Param("userCateId") Integer userCateId);
}